package com.hy.erp.inventory.pojo;

import java.io.Serializable ;
import java.util.Date ;

import javax.persistence.CascadeType ;
import javax.persistence.Column ;
import javax.persistence.Entity ;
import javax.persistence.FetchType ;
import javax.persistence.Id ;
import javax.persistence.NamedQuery ;
import javax.persistence.OneToOne ;
import javax.persistence.Table ;
import javax.persistence.Temporal ;
import javax.persistence.TemporalType ;

import org.hibernate.annotations.Index ;
import org.jboss.seam.ScopeType ;
import org.jboss.seam.annotations.Name ;
import org.jboss.seam.annotations.Scope ;

import com.hy.erp.inventory.dao.interfaces.ITrainingDao;
import com.hy.erp.inventory.pojo.interfaces.ITraining;
import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.api.annotation.DaoA;
import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.entity.AbstractPersistentEntity;


/**
 * <ul>
 * <li>开发作者：汤莉</li>
 * <li>设计日期：2010-10-6；时间：下午02:38:18</li>
 * <li>字段类型：long；字段名称：serialVersionUID</li>
 * <li>设计目的：培训经历</li>
 * </ul>
 * <ul>
 * <b>修订编号：</b>
 * <li>修订日期：</li>
 * <li>修订作者：</li>
 * <li>修订原因：</li>
 * <li>修订内容：</li>
 * </ul>
 */

/*@Entity
@Name("training")
@Scope(ScopeType.SESSION)
@Table(name="trainings")
@DaoA(ITrainingDao.class)
@ NamedQuery ( name = "findTrainingByPersonId" , query = "select p.training from Person p where p.identifier=?")
*/public class Training extends AbstractPersistentEntity implements ITraining
{

	private static final long	serialVersionUID	=
														4441046372224137632L ;

	public Training(){}

	

	@Column(name="trainingName",unique=false,nullable=false,insertable=true,updatable=true)
	@Index(name="trainingNameIndex")
	public String getTrainingName ( )
	{
		return this.get(ITraining.TRAININGNAME) ;
	}

	@Column(name="startDate",unique=false,nullable=false,insertable=true,updatable=true)
	@Temporal(TemporalType.DATE)
	public Date getStartDate ( )
	{
		return this.get(ITraining.STARTDATE) ;
	}

	@Column(name="stopDate",unique=false,nullable=false,insertable=true,updatable=true)
	@Temporal(TemporalType.DATE)
	public Date getStopDate ( )
	{
		return this.get(ITraining.STOPDATE) ;
	}
	@Column(name="address",unique=false,nullable=false,insertable=true,updatable=true)

	public String getAddress ( )
	{
		return this.get(ITraining.ADDRESS) ;
	}

	@Column(name="remark",unique=false,nullable=true,insertable=true,updatable=true)
	public String getRemark ( )
	{
		return this.get(ITraining.REMARK) ;
	}

	//######################################################################
	
	

	public void setTrainingName (
									String trainingName )
	{
		super.set(ITraining.TRAININGNAME, trainingName);
	}

	public void setStartDate (
								Date startDate )
	{
		super.set(ITraining.STARTDATE, startDate);
	}

	public void setStopDate (
								Date stopDate )
	{
		super.set(ITraining.STOPDATE, stopDate);
	}

	public void setAddress (
								String address )
	{
		super.set(ITraining.ADDRESS, address);
	}

	public void setRemark (
							String remark )
	{
		super.set(ITraining.REMARK, remark);
	}
	
	
}
